<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../Template/AdminTemplate.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <f:view>
            <h:form>
                <h1><h:outputText value="Create/Edit"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="ContactId:"  />
                    <h:outputText  value="#{contactControl.contact.contactId}" />
                    <h:outputLabel value="Title:" for="title" />
                    <h:outputText value="#{contactControl.contact.title}"/>
                    <h:outputLabel value="ContentContact:" for="contentContact" />
                    <h:inputText id="contentContact" value="#{contactControl.contact.contentContact}" title="ContentContact" />
                    <h:outputLabel value="ContactDate:" for="contactDate" />
                    <h:inputText id="contactDate" value="#{contactControl.contact.contactDate}" title="ContactDate" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="IsAccepted:" for="isAccepted" />
                    <h:inputText id="isAccepted" value="#{contactControl.contact.isAccepted}" title="IsAccepted" />
                    <h:outputLabel value="UserId:" for="userId" />
                    <h:selectOneMenu id="userId" value="#{contactControl.contact.userId}" title="UserId" >
                        <!-- TODO: update below reference to list of available items-->
                        <f:selectItems value="#{fixme}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
            </h:form>
        </f:view>
        
    </ui:define>

</ui:composition>
